#ifndef MONSTER_H
#define MONSTER_H

#include <QString>
#include <QDebug>

#include "point2d.h"

class Monster
{
    friend QTextStream& operator<<(QTextStream &out, const Monster &monster);
public:
    Monster();
    Monster(QString name, int en, const Point2D &cpos): m_Name(name), m_Energy(en), m_Position(cpos) {}
    Monster(QString name, int en, int x, int y): m_Name(name), m_Energy(en), m_Position(x,y) {}
    void moveTo(int x, int y);
    QString getName() const {return m_Name;}
    QString toString() const;
private:
    QString m_Name;
    int m_Energy;
    Point2D m_Position;
};

#endif // MONSTER_H
